Configuring the Internal Browser

The following sections describe the choices available for browsing documents and processing pages from within HomeSite.

Setting the internal browser options

You can use the internal browser to view documents in a Web browser within the program. Open the Options > Settings > Browse pane to set options.

You can select from these browser options:

Only one internal browser may be used at a time, but you can change this setting as needed. Restart the program to effect the change.

Note Installing Mozilla
  1. Downloading the Mozilla binaries.
  2. Unzip the Mozilla files into a new directory.
  3. Add the Mozilla bin directory to your PATH environment variable and reboot if necessary. If you are using Win 95/98 you may have to specify the short name version of the path, such as, c:\mozil~1\bin

    If your Mozilla bin directory does not contain a file named component.reg or if that file is smaller than 5KB, then delete it and run mozilla.exe. This generates a new component.reg file. This file is the database XPCOM uses to create new objects, without it the Mozilla control will not be able to create Gecko components and will not work.

  4. Open a DOS prompt, change to the Mozilla bin directory and type regsvr32 mozctl.dll.

    If regsvr32.exe is not in you path use the Windows Find Files utility to locate it and run it using the full path.

  5. Run regedit and create a new key HKEY_LOCAL_MACHINE\Software\Mozilla.
  6. Create a string value BinDirectoryPath under this key with the value being the path to the Mozilla bin directory, such as, c:\mozilla\bin.

The control will not function without these settings being correct!

Selecting the Use External Browser Configuration for Internal Browser check box applies consistent file save behavior when viewing documents in either the internal browser or an external browser. See Configuring External Browsers for details.

Adding development mappings

By default, when you browse a document in the internal or external browser, it is opened from the local file system or returned via FTP from a remote server. That is adequate for checking page content and formatting, but for developing a Web site, you need to see dynamic pages as visitors to the site will actually experience them.

To do this, you can route the documents through a Web server. The server software can be on the local machine, a network server, or a remote system. So, instead of just opening the files, an HTTP request for the page is sent to the server. If any server-side processing is required, such as for scripts, the Web server will hand off the page to the appropriate server for further processing, then return it to the browser. This is valuable for previewing applications and site elements in a test environment before deploying the site.

You establish this routing by associating the physical directories where your files are stored with the server that processes the files. This association is called a mapping.

A wide range of Web servers is supported, so you can create multiple mappings and select a server to use for processing as needed. Consult your server documentation or Internet Service Provider (ISP) for the specifics of accessing server directories.

Note To add a mapping:
  1. Select the Enable server mappings option.
  2. Click the Add button.
  3. Enter the document root path to map from.

    In this example, the IIS document root is used.

  4. Enter the server URL to map to.

    In this example, the default entry is used because the document is to be processed by the Web server on the same machine.

  5. Click OK.

    The mapping appears in the Settings pane.

If you want to process documents from a location other than below the Web server root, you need to identify the file path in the Web server. The following procedure is based on a typical IIS installation, the procedure for your installation might differ. If you are using a different Web server, consult your server documentation.

Note To configure IIS for a server mapping:
  1. Open the IIS Management Console and expand the IIS node.
  2. Right-click on Default Web Server and select New > Virtual Directory.
  3. Follow the steps in the New Virtual Directory Wizard to add the directory.
  4. Follow the steps in the To add a mapping procedure.

    Be sure to include the full virtual directory path in the URL.

If you set up multiple mappings, you will need to switch to the appropriate mapping for the document you want to process.

Note To set a mapping as the default:
  1. Open the Settings > Browse panel.
  2. Select the entry that you want to move in mappings list.
  3. Click the Up Arrow button to move the entry to the top of the list.
  4. Click OK.